End Program main同理,如果是計算向量的模,則可以采用:C=dot_product(a,a)**0.5也可以采用:C=norm2(a)后者是采用norm2函數計算向量的二范數計算矩陣與矩陣相乘:Matmul(a,b)獲取數組的最大值:Maxval((/2,3,4,6,4/))=6獲取數組中最大值的位置:Maxloc:
Ignoring Velocity Error Norm Check For This Step Due to Lack of Convergence2 0.3266513808E+02 0.1147407572E+08 0.9926565583E+00 0.320Ignoring Velocity Error Norm Check For This Step Due to Lack of